/* Estilos de galería responsiva */
.navbar {
    display: flex;
    justify-content: flex-start;
    padding: 10px;
    background-color: black;
}

.navbar a {
    color: white;
    text-decoration: none;
    margin: 0 10px;
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

.profile-pic {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 20px;
}

.description {
    margin-left: 0;
    font-size: 24px;
    text-align: center;
}

/* Contenedor de proyectos modificado para 2 columnas en móviles */
.projects {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 columnas en móviles */
    gap: 15px;
    padding: 15px;
    width: 100%;
    box-sizing: border-box;
}

.project-box {
    width: 100%;
    height: 180px; /* Altura ajustada */
    border-radius: 10px;
    display: flex;
    align-items: center;
    border: 1px solid #51D9B2;
    justify-content: center;
    transition: transform 0.3s ease;
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

.project-box img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cambiado a cover para mejor visualización */
    transition: transform 0.3s ease;
}

/* Efecto hover solo para dispositivos que lo soportan */
@media (hover: hover) {
    .project-box:hover {
        transform: scale(1.03);
    }
    .project-box:hover img {
        transform: scale(1.1);
    }
}

/* Media queries para tablets (3 columnass) */
@media (min-width: 768px) {
    .container {
        flex-direction: row;
    }
    
    .description {
        margin-left: 20px;
        text-align: left;
    }
    
    .projects {
        grid-template-columns: repeat(3, 1fr); /* 3 columnas en tablets */
        gap: 20px;
    }
    
    .project-box {
        height: 200px;
    }
}

/* Media queries para desktop (4 columnas) */
@media (min-width: 1024px) {
    .projects {
        grid-template-columns: repeat(4, 1fr); /* 4 columnas en desktop */
    }
    
    .project-box {
        height: 220px;
    }
}
